<?php

namespace DesignNew\State;

require('../vendor/autoload.php');

class StateClient
{
    public function __construct()
    {
        $editor = new TextEditor(new DefaultCase());

        $editor->type('First line');

        $editor->setState(new UpperCase());

        $editor->type('Second line');
        $editor->type('Third line');

        $editor->setState(new LowerCase());
        $editor->type('Fourth line');
        $editor->type('Fifth line');
    }
    
}

$client = new \DesignNew\State\StateClient();